package dt.member;

import java.util.Map;

import org.apache.struts2.interceptor.SessionAware;

import com.opensymphony.xwork2.ActionSupport;

public class LoginAction extends ActionSupport implements SessionAware {
	private int BoardFlag = 1;
	private int LoginFlag = 1;
	private Map session;
	
	private String id = null;
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	public String execute() throws Exception {
		session.put("id", getMemId());
		return SUCCESS;
	}
	
	public String getMemId() {
		return id;
	}
	
	public void setMemId(String id){
		this.id = id;
	}
	
	
	public int getBoardFlag() {
		return BoardFlag;
	}

	public void setBoardFlag(int BoardFlag) {
		this.BoardFlag = BoardFlag;
	}
	
	public int getLoginFlag() {
		return LoginFlag;
	}

	public void setLoginFlag(int LoginFlag) {
		this.LoginFlag = LoginFlag;
	}

	@Override
	public void setSession(Map session) {
		this.session = session;		
	}
	
	public Map getSession(){
		return session;
	}
}
